<?php
/**
 * Created by PhpStorm.
 * User: chenx
 * Date: 18-3-9
 * Time: 上午11:11
 */

namespace common\models;


use yii\db\ActiveRecord;

class Shop extends ActiveRecord
{
    public static function tableName()
    {
        return 'shop';
    }

    public function rules()
    {
        return [
            [['shop_name','user_account','password','openid','administration','admin_email',
                'admin_phone','join_card_no','join_card1_pic','join_card2_pic','join_card3_pic',
                'customer_phone','dismissal','shop_logo','withdraw_pwd'],'string'],
            [['id','status','create_time','update_time','login_time'],'integer'],
            [['shop_money','service_money','service_rate'],'double'],

        ];
    }

    public function attributeLabels()
    {
        return [
            'id	'=>'id',
            'shop_name'=>'商品名称',
            'user_account'=>'允许登录账号',
            'password'=>'登录密码',
            'openid'=>'openid',
            'administration'=>'店铺管理员',
            'admin_email'=>'店铺邮箱',
            'admin_phone'=>'店铺手机号',
            'join_card1_pic'=>'身份证正面',
            'join_card2_pic'=>'身份证反面',
            'join_card3_pic'=>'手持身份证照',
            'status'=>'	0待审核,1审核成功,2驳回',
            'customer_phone'=>' 客服电话',
            'dismissal'=>'驳回原因',
            'shop_logo'=>' 店铺logo',
            'shop_money' => '店铺金额',
            'withdraw_pwd' => '提现密码',
            'service_money' => '服务金额',
            'service_rate' => '平台服务费率',
            'create_time'=>'创建时间',
            'update_time'=>'完成时间',
            'login_time'=>'登陆时间'
        ];
    }

}